Repository navigation
Select: resolve faces and edges from a point or index (#10171) - #10191
Merged
bherbruck merged 2 commits intoOct 31, 2026
Merged
Conversation
cfaulkingham
force-pushed
the
codex/select-point-index-10171
branch
from
October 31, 2026 18:33
c5b4f46 to
aac092f
Compare
cfaulkingham
marked this pull request as ready for review
October 31, 2026 18:33
bherbruck
enabled auto-merge
October 31, 2026 18:57
bherbruck
added this pull request to the merge queue
Oct 31, 2026
Merged
via the queue into
tangency-labs:main
with commit Oct 31, 2026
d4144dd
126 of 144 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Fixes #10171.
select.setrejected a face or edge unless scripts supplied both its topology index and a point. It now resolves an omitted index from a world-space point using Measure's pick tolerance, or supplies a point on the geometry when only an index is given. Existing complete selections retain their exact index and point. An invalid partial pick leaves the selection unchanged, including in a mixed batch withadd: true.The command help and MCP documentation describe the accepted inputs. Four regressions in the existing edit tests cover a translated box, curved cylinder faces and edges, a rotated/translated component occurrence, deduplication, and atomic errors. Analytic checks verify a 100 mm² face, a 10 mm edge, and a 10 mm cylinder diameter.
Changes a default: no
Validation
missing field indexbefore implementation.cargo xtask ciran before the implementation commit. Formatting, asset/icon/licence/list/skill/layer/container checks, workspace Clippy with-D warnings, wasm, and doc tests passed. All 83 native test binaries completed. The native run reported five failures:agent_chat_home_page,params_dialog::tests::a_long_expression_opens_wide_while_edited_and_enter_applies_it,cmd::features::prism_local_tests::a_ring_cut_round_a_counterbored_hole_in_a_chamfered_disc, and robustness seeds 36 and 71. The engine library reported 3,056 passing tests. Full CI is not green.a9e9f8b82source (the empty claim commitc5b4f46bc), with the same UI assertions, ring-cut volume mismatch, and seed 36/71 geometry differences. No test expectations or geometry goldens were changed.aeca11704,cargo test --profile ci -p solidcraft-engine --lib cmd::edit::tests::passed all 50 tests,cargo clippy -p solidcraft-engine --all-targets -- -D warningspassed, and formatting/diff checks passed. Full CI was not repeated after the rebase.Screenshots of the behavior
In a fresh 10 mm box, run
select.set {"items":[{"type":"face","body":"Body1","point":[5,5,10]}]}.Before: SolidCraft 0.28.0 reports
missing field index; no face is selected.After: The fixed build returns
selected: 1, resolves face index5, and highlights the top face.Integration status
The draft claim was opened and the bot's claim confirmed before implementation. Rebased onto upstream
aeca11704without conflicts before the implementation push. This remains pending maintainer review and CI; no merge has been requested.